e8733b886c2f4afdb2648e7ba46464e4d6e8c222,OsmAnd/src/net/osmand/plus/activities/DownloadFileHelper.java,DownloadFileHelper,downloadFile,#String#File#File#boolean#IProgress#number#number#List#String#DownloadFileShowWarning#,122
Before Change
File toIndex = fileToDownload;
if (fileToDownload.getName().endsWith(".zip")) { //$NON-NLS-1$
progress.startTask(ctx.getString(R.string.unzipping_file), -1);
if (!unzipToDir) {
toIndex = fileToUnZip;
} else {
After Change
boolean first = true;
while ((entry = zipIn.getNextEntry()) != null) {
int size = (int)entry.getSize();
progress.startTask(ctx.getString(R.string.unzipping_file), size);
File fs;
if (!unzipToDir) {
if (first) {